xen/domain: Move guest type checks into the arch_sanitise_domain_config() path
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Nov 2018 18:55:59 +0000 (18:55 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 15 Nov 2018 11:11:30 +0000 (11:11 +0000)
commit293789bec05f8d943b1c123d662f3b52b213d59f
treeb940e08dab28fc665898741409e474a9babbd7c0
parent78eb62977bf4d98b06bb80ad1739061dfa1c1414
xen/domain: Move guest type checks into the arch_sanitise_domain_config() path

This is a more appropriate location for the checks to happen, and cleans up
the common code substantially.

Take the opportunity to make ARM strictly require HVM|HAP for guests, which is
how the toolstack behaves, and leave a dprintk() behind for auditing failures.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/arm/domain.c
xen/arch/x86/domain.c
xen/common/domain.c